package com.lsk.mobile;

import com.jfinal.aop.Duang;
import com.jfinal.core.Controller;
import com.jfinal.plugin.redis.Cache;
import com.jfinal.plugin.redis.Redis;
import com.lsk.util.ReturnData;

public class DouYinController extends Controller {
    Cache cache= Redis.use();
    DouYinService douYinService=new DouYinService();
    AppletService txAppletService= Duang.duang(new AppletService());

    public void douyinLogin(){

        String code=getPara("code");

        String nickName=getPara("nickName");

        ReturnData returnData= douYinService.apiupMemberService(code,nickName);

        renderJson(returnData);
    }
}
